From e4a459fca595f572178e90fe3d7565b2648bce44 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Thu, 14 Jun 2012 16:05:42 +0100 Subject: [PATCH] libxl: propagate down the error from libxl_domain_sched_params_set So that the caller (e.g., libxl__build_post() ) knows and can deal with it. Signed-off-by: Dario Faggioli Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_dom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 10f8c1f73c..a2e66558d3 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -173,9 +173,11 @@ int libxl__build_post(libxl__gc *gc, uint32_t domid, char *dom_path, *vm_path; xs_transaction_t t; char **ents, **hvm_ents; - int i; + int i, rc; - libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + rc = libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + if (rc) + return rc; libxl_cpuid_apply_policy(ctx, domid); if (info->cpuid != NULL) -- 2.30.2